package com.by.entity;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.IdType;

/**
 * @author ServivE
 * @version 0.1
 * @className Goods
 * @description
 * @date 2024/11/29 20:23
 * @since jdk17
 */
@Data
@IndexName  //默认索引是goods
public class Goods {

    @IndexId(type = IdType.UUID)
    String id;
    @IndexField
    String name;
    double price;
}
